docs: Pass --standalone to pandoc
authorMatthias Clasen <mclasen@redhat.com>
Thu, 23 Jul 2020 19:46:06 +0000 (15:46 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 23 Jul 2020 22:24:18 +0000 (18:24 -0400)
This flag causes pandoc to emit a proper doctype
declaration and, crucially, namespace declarations
for the xlink namespace that it insists on using
for href attributes. Without this, putting external
links in md documents doesn't survive the journey
through xml.

docs/reference/gtk/gtk-markdown-to-docbook

index f48b556f48e6430c794844c3dccc20cd4afdeb62..4268bf1b7a716c527a1fa2522d30789fd1d75545 100755 (executable)
@@ -177,6 +177,7 @@ def ConvertToDocbook(infile, outfile):
     subprocess.check_call(["pandoc", infile, "-o", outfile,
                            "--from=" + input_format,
                            "--to=" + output_format,
+                           "--standalone",
                            "--top-level-division=" + division])
 
 def ExpandGtkDocAbbreviations(infile, outfile):